package com.szxy.hotel.service;

import com.szxy.hotel.entity.Client;
import com.szxy.hotel.mapper.ClientMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("clientService")
public class ClientService {
    @Resource
    ClientMapper clientMapper;

    public Client findByclientname(String userName) {
        return clientMapper.findByclientname(userName);
    }

    public int insertClient(String userName, String identity, Double money, String phone) {
        return clientMapper.insertClient(userName,identity,money,phone);
    }

    public int updateClient(String userName, Double money) {
        return clientMapper.updateClient(userName,money);
    }

}
